package engine.tip.tipItem
{
	import engine.data.ObjectData;
	import engine.data.SceneObject;
	
	import newx.com.config.StaticIni;

	/**
	 * 宠物Tips 
	 * @author yangyuechao
	 * 
	 */	
	public class PetTipItem extends BaseTipItem
	{
		private var _tipArr:Array = ["UIString_1000598", "UIString_1000599", "UIString_1000600"
										, "UIString_1000601", "PeerageStr_4"];
		
		public function PetTipItem(dataObject:ObjectData=null,data:Object=null)
		{
			super(dataObject,data);
		}
		
		/**
		 * id；名称；品阶；等级；属性等级；战斗力
		 * @param data
		 * @return 
		 * 
		 */		
		public function getPetTips(data:Array):String
		{
			var _data:Array = data.slice(1, data.length);
			var str:String = "";
			var _add:String = "";
			for(var i:int = 0; i < _tipArr.length; i++) {
				_add = (i == _tipArr.length - 1) ? "" : "\n";
				str += StaticIni.getSwfLangStr(_tipArr[i]) + _data.shift() + _add;
			}
			return str;
		}
			
	}
}